//
//  TestHeightViewControolerViewController.swift
//  statusBar_tabBar_safeArea_height
//
//  Created by 郭扬扬 on 2021/10/31.

//  在AppDelegate中通过window设置，状态栏，底部安全区尺寸

import UIKit

class TestViewController_Window: UIViewController {
    
    let topView = UIView.init()
    let bottomView = UIView.init()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.white
        view.addSubview(topView)
        view.addSubview(bottomView)
    }
    
    override func viewDidLayoutSubviews() {
        topView.backgroundColor = UIColor.red
        topView.frame = CGRect.init(x: 0, y: kStatusBarHeight, width: kScreenW, height: 100)
        
        bottomView.backgroundColor = UIColor.blue
        bottomView.frame = CGRect.init(x: 0, y: kScreenH - 100 - kSafeAreaBottomH, width: kScreenW, height: 100)
    }
    


}
